package Test;

import java.util.ArrayList;

import org.junit.Test;

import DBLayer.DBActivityDetails;
import ModelLayer.ActivityDetails;

public class TestDBActivityDetails
{
	DBActivityDetails dbad = new DBActivityDetails();
	ArrayList<ActivityDetails> adlist = dbad.getAllActivityDetails(false);

	@Test
	public void testGetAllActivityDetails() {
	    System.out.println("\nActivityDetails size : " + adlist.size() + "\n");
	}

	@Test
	public void testSearchActivityDetailsID() {
		int id = 1;
		while(id <= adlist.size())
		{
			ActivityDetails ad = dbad.searchActivityDetailsID(id, false);
			System.out.println("ActivityDetailsID    : " + ad.getActivityDetailsID());
			System.out.println("Requirements         : " + ad.getRequirements());
			System.out.println("TrainingProcedure    : " + ad.getTrainingProcedure());
			System.out.println("PromptSuggestions    : " + ad.getPromptSuggestions());
			System.out.println("Material             : " + ad.getMaterial());
			System.out.println("TrainingMethod       : " + ad.getTrainingMethod());
			System.out.println("Generalization       : " + ad.getGeneralization());
			System.out.println("TrainingActivityID   : " + ad.getTrainingActivity().getTrainingActivityID());
			System.out.println("-----------------------------------------------");
			id++;
		}
	}
}
